<?php
require_once '../include/common.inc.php';
if (!checkAdmin()) {
    header("LOCATION:index.php");
    exit;
}
$menu_index = 3;
$page_title = 'TABLA';
$guide_message = 'Media | Promotion | Delete';

getMyParam('id');
$sql="select * from `med_promotion`  where id=$id";
$ary=$mysql->fetch($sql);

include_once('menu_list.php');
require_once PrintEot('a_header');
?>
<form id="form1" name="form1" method="post" action="m_promotion.php" ><table width="95%" border="0" align="center">
  <tr>
    <td align="left">      <input type="submit" class="button" name="Submit" value="   Yes   ">
      <input type="button" class="button" name="Submit2" value="   No   " onClick="Redirect('m_promotion.php',1)"><input name="action" type="hidden" id="action" value="del" />
        <input name="id" type="hidden" id="id" value="<?=$id?>" /></td>
  </tr>
  <tr>
    <td valign="top"><table width="75%">
      <tr>
        <td valign="top" >&nbsp;</td>
        <td align="center">Englis</td>
        <td align="center">Danish</td>
      </tr>
      <tr>
        <td width="128" valign="top" >Subject :</td>
        <td width="732">&nbsp;<?=$ary[0]["subject"]?></td>
        <td width="732"><?=$ary[0]["subject_d"]?></td>
      </tr>
      <tr>
        <td width="128" valign="top" >Detail :</td>
        <td valign="top">&nbsp;<?=$ary[0]["detail"]?></td>
        <td valign="top"><?=$ary[0]["detail_d"]?></td>
      </tr>
      <tr>
        <td width="128" valign="top" > Picture:</td>
        <td><img src="../pictures/promotion/<?=$ary[0]["pic"]?>" />
          <label></label></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td width="128" valign="top" >Publish :</td>
        <td><?php if($ary[0]["publish"]==1) echo "Yes";else echo "No";?></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td width="128" valign="top" >Publish Date:</td>
        <td>&nbsp;<?=$ary[0]["publishdate"]?></td>
        <td>&nbsp;</td>
      </tr>
      
    </table></td>
  </tr>
</table>
</form>
<?php
require_once PrintEot('a_footer');

?>